﻿using Newtonsoft.Json.Converters;

namespace WebCoreAdmin.Common
{
    public class DateFormatConverter : IsoDateTimeConverter
    {
        public DateFormatConverter() : this("yyyy-MM-dd HH:mm:ss")
        {

        }
        public DateFormatConverter(string dateTimeFormat)
        {
            DateTimeFormat = dateTimeFormat;
        }
    }
}
///// <summary>
///// 生日
///// </summary>
//[JsonConverter(typeof(DateFormatConverter), "yyyy-MM-dd")]
//public DateTime Birthday { get; set; }